export default {
    getResList: function ({
        commit
    }, param) {
        return $http.get(`${window.RPConfig.mgt}/role/getResList`).then((response) => {
            var resList = response.data;
            let list = [];
            for (let i = 0; i < resList.length; i++) {
                list.push(resList[i].resourceCode);
            }
            commit("setResList", list);
            return response.data;
        })
    }
}